package JDBC_Test.park.Model;

public class ParkingLotModel {
	
	private Integer parkNo;
	private Integer state;//车位状态，0表示可用，1表示不可用
	public ParkingLotModel(Integer parkNo, Integer state) {
		super();
		this.parkNo = parkNo;
		this.state = state;
	}
	public ParkingLotModel() {
		super();
	}
	public Integer getParkNo() {
		return parkNo;
	}
	public void setParkNo(Integer parkNo) {
		this.parkNo = parkNo;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	@Override
	public String toString() {
		if(state==0) {
			
			return "ParkingLotModel [parkNo=" + parkNo + ", state=" + "空闲" + "]";
		}else {
			return "ParkingLotModel [parkNo=" + parkNo + ", state=" + "已占用" + "]";
		}
	}
	
	
	
	
	
}
